package com.altuure.yablog.service;

import java.util.List;
import java.util.Map;

import com.altuure.yablog.model.Category;
import com.altuure.yablog.model.Link;
import com.altuure.yablog.model.Post;
import com.altuure.yablog.model.Tag;
import com.altuure.yagdao.SearchResultList;
import com.altuure.yagdao.YMethod;
import com.altuure.yagdao.YPage;

public interface BrowserService {
    
    public Map<String,String> getConf();
    
    public SearchResultList<Post> getPostList(int page,String tag, String category);
    
    public SearchResultList<Post> search(String keyword);
    
    public List popularTags();
    
    public List<Link> getLinks();
    
    public Post getPost(long id);


    SearchResultList<Post> listbyDate();


    SearchResultList listByMonth( int year,  int month, YPage yPage);

    SearchResultList listTagAndCategory( String tag,  String category, YPage yPage);

    List<Category> getCategories();

    int getPageCount();

    SearchResultList<Post> getPostListByDate(Integer year, Integer month, int page);
}
